package com.seaboxdata.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.seaboxdata.dao.OldStrategyConfigDao;
import com.seaboxdata.entity.OldStrategyConfig;
import com.seaboxdata.service.OldStrategyConfigService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @author
 * @create 2020-12-29 11:57
 **/
@Service("oldStrategyConfigService")
@Slf4j
public class OldStrategyConfigServiceImpl extends ServiceImpl<OldStrategyConfigDao, OldStrategyConfig> implements OldStrategyConfigService {

    @Autowired
    private OldStrategyConfigDao oldStrategyConfigDao;

    @Override
    public List<OldStrategyConfig> getAllEffectiveConfigs() {
        return oldStrategyConfigDao.getAllEffectiveConfigs(new Date());
    }

}
